import AOS from 'aos'
import { createApp } from 'vue'

import App from './App.vue'
import router from './router'

import i18n from '~locales'
import store from '~stores'
import 'dayjs/locale/zh-cn'
import '~assets/style/index.css'
import { initTheme } from '~theme/index.js'
import './permission'

// 引入第三方动画库
import 'animate.css'
import 'aos/dist/aos.css'

// 初始化主题
initTheme()

// 初始化AOS动画库
AOS.init({
  duration: 800,
  easing: 'ease-in-out',
  once: true,
  offset: 100
})

const app = createApp(App)

app.use(i18n).use(store).use(router).mount('#app')
